package com.yunti.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunti.springboot.po.User;
import com.yunti.springboot.vo.req.UserSearchReq;
import com.yunti.springboot.vo.res.UserConfigRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    List<String> getAllPermissionById(@Param("id")Integer id);

    List<UserConfigRes> getUserListPage(@Param("req") UserSearchReq req, @Param("page") Page page);

    int saveUser(@Param("user") User user);

    List<UserConfigRes>  getChildrenUserListPage(@Param("req") UserSearchReq req, @Param("page") Page page);

}
